package com.jiuyun.auth.dao;

import com.jiuyun.auth.entity.Role;
import com.jiuyun.auth.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface RoleDao {
    //查询所以角色
    List Rolefind() throws SQLException;
    //删除某个人所以角色
    int delRoles(int uid) throws SQLException;
    //添加一个角色
    int addRole(int userId,int roleId) throws  SQLException;
}
